#ifndef TCPSOCKET_H
#define TCPSOCKET_H
#include <QObject>
#include <QTcpServer>
#include <QTcpSocket>
class TcpSocket : public QObject
{
    Q_OBJECT

public:
    TcpSocket();
    void send();
    void server();
    void stopListen();
public slots:
    void acceptConnect();
    void clientConnected();
    void do_connected();
public:
    QTcpServer* m_server;
};

#endif // TCPSOCKET_H
